//
//  UIImageView+DownLoader.m
//  UI15图片封装\
//
//  Created by dllo on 15/5/7.
//  Copyright (c) 2015年 蓝鸥. All rights reserved.
//

#import "UIImageView+DownLoader.h"

@implementation UIImageView (DownLoader)

- (void)setImageWithUrl:(NSString *)str placeHolder:(NSString *)placeHolder
{
    [self setImage:[UIImage imageNamed:placeHolder]];
    [ConnectModel connectUrlWith:str delegate:self];
}

- (void)sendData:(NSMutableData *)data
{
    UIImage * image = [UIImage imageWithData:data];
    
    [self setImage:image];
}

@end
